#include "iBe.h"

SceneManagerPtr SceneManager::inst;

SceneManager::SceneManager()
{
  front.reset ( new Scene() );
  back.reset( new Scene() );
}

SceneManager::~SceneManager()
{}

SceneManagerPtr SceneManager::instance()
{
  if ( !inst )
    {
      inst.reset( new SceneManager() );
    }
  return inst;
}

ScenePtr SceneManager::getBackScene()
{
  return back;
}

ScenePtr SceneManager::getFrontScene()
{
  return front;
}

void SceneManager::swapScene()
{
  front.swap(back);
}

